package ${package}.utils;

import com.ishansong.common.config.Config;
import com.ishansong.common.config.ConfigCenter;

/**
 */
public class AppUtil {

    private static Config config = null;

    static {
        try {
            //读取配置文件配置
            config = ConfigCenter.getConfig("app.properties");
        } catch(Exception e) {
            e.printStackTrace();
        }
    }

    public static String getString(String code){
        return config.getString(code);
    }
}
